package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.ChannelDTO;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;

import java.sql.ResultSet;

public interface AdChannelService extends IService<AdChannel> {

    /**
     *频道分页查询
     */
    public ResponseResult findByNameAndPage(ChannelDTO channelDTO);

    /**
     * 频道信息修改
     * @param channel
     * @return
     */
    public ResponseResult insertnews(AdChannel channel);

    /**
     * 频道修改
     * @param channel
     * @return
     */
    public ResponseResult updatenews(AdChannel channel);

    /**
     * 频道删除
     * @param id
     * @return
     */
    public ResponseResult deletenews(Integer id);
}
